import java.util.*;

public class Test2 {
    public static void main(String[] args) {
       do {
            Scanner in = new Scanner(System.in);
            Map<String, String> map = new HashMap<>();
            map.put("D", "干燥");
            map.put("M", "潮湿");
            map.put("H", "炎热");
            map.put("R", "下雨");
            System.out.println("请输入天气状况的第一个英文字母:");
            String str = in.next();
            System.out.println(map.getOrDefault(str, "输入错误, 无法转换"));
            System.out.println("你想继续吗? (y/n)");
            String s = in.next();
            if (s.equals("n")) {
                System.out.println("退出系统!");
                break;
            }
        } while (true);
    }
}
